﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterHome.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="EC21_EDiamond.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
                   <div class="main-content grid_16 rounded homeContentCfg">
                    <!--sidebar-->
                    <div class="sidebar grid_4 alpha">
                        <div class="sidebar grid_4 alpha">
                            <h2 class="rounded">Danh mục sản phẩm</h2>
                            <ul>
                                <asp:Repeater ID="rpDanhMuc" runat="server">
                                    <ItemTemplate>
                                        <li><a href="./Product.aspx?id=<%#Eval("MaDM")%>"><span><%#Eval("TenDM")%></span></a></li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </div>
                        <div class="clear"></div>
                        <div class="block block-layered-nav">
                            <div class="block-title">
                                <span>Gift</span>
                            </div>
                            <div class="block-content">
                                <div class="sidebar-img">
                                    <a href="#"><img src=".\Content\fontend\images\JewelrySpecials.jpg" border="0"></a>          
                                </div>
                            </div>
                        </div>
                        <!--end sidebar-->
                        <div class="block block-layered-nav nav-links-search" id="Div1">
                            <div class="block-title">
                                <span>Đăng ký nhận Newsletter</span>
                            </div>
                            <div class="block-content">
                                
                                <div style="font-weight: bold; margin-left: 5px;">Đăng ký để nhận thông tin ưu đãi mới nhất từ EC21:</div>
                                <asp:TextBox ID="txtEmail" runat="server" class="floatLeft input-text required-entry validate-email"></asp:TextBox>
                                <!--<button class="rounded floatLeft" type="submit" >Send</button>-->
                                <asp:Button ID="btnSendMail" Style=" background: linear-gradient(#E5CF9F, #D9B67A) repeat scroll 0 0 rgba(0, 0, 0, 0);
    color: #132D40;
    height: 34px;
    line-height: 34px;
    margin-left: -9px;
    margin-top: 5px;
    padding: 0 10px;" class ="rounded floatLeft sendmail" runat="server" Text="Send" OnClick="btnSendMail_Click" />
                                <script type="text/javascript">
                                    //<![CDATA[
                                    var newsletterSubscriberFormDetail = new VarienForm('newsletter-validate-detail');
                                    new Varien.searchForm('newsletter-validate-detail', 'newsletter', 'Nhập email của bạn');
                                    //]]>
                                </script>
                            </div>
                        </div>
                        <div class="clear"></div>
                        <div class="block block-layered-nav">
                            <div class="block-title">
                                <span>Hỗ trợ</span>
                            </div>
                            <div class="block-content">
                                <ul class="grid_3 alpha">
                                    <li><b>HotLine:</b> <b style="color:red; font-size:15px;">0973461481</b></li>
                                    <li><a onclick="_gaq.push(['_trackEvent', 'Webmaster, 'Click', 'Yahoo-Webmaster]);" href="ymsgr:sendim?hoangvukenshin">Hỗ trợ mua hàng</a></li>
                                    <li><a onclick="_gaq.push(['_trackEvent', 'Webmaster, 'Click', 'Yahoo-Webmaster]);" href="ymsgr:sendim?hoangvukenshin">Hỗ trợ kỹ thuật</a></li>
                                    <li><a onclick="_gaq.push(['_trackEvent', 'Webmaster, 'Click', 'Yahoo-Webmaster]);" href="ymsgr:sendim?hoangvukenshin">Hỗ trợ vận chuyển</a></li>
                                </ul>
                            </div>
                        </div>
                        <!-- Load tu database -->
                    </div>
                    <!--end sidebar-->
                    <div class="main grid_12 omega">
                        <div class="std">
                            <div>
                                <div class="header-slider grid_16 rounded drop-shadow homeSliderCfg">
                                    <ul id="carousel" class="jcarousel jcarousel-skin-tango">
                                        <asp:Repeater ID="rpDsSpIndex" runat="server">
                                        <ItemTemplate>
                                            <li>
                                                <div class="header-slider-item">
                                                    <a href=".\ProductDetail.aspx?id=<%#Eval("MaSP")%>" title="<%#Eval("TenSP")%>" class="product-image"><img src="<%#Eval("HinhAnh")%>" width="147"  alt="<%#Eval("TenSP")%>" /></a>
                                                    <p><%#Eval("TenSP")%></p>
                                                    
                                                </div>
                                            </li>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                    </ul>
                                </div>
                                <script type="text/javascript">
                                    // jQuery('#carousel').jcarousel();
                                    jQuery('#carousel').jcarousel({
                                        auto: 4,
                                        wrap: 'circular',
                                        scroll: 1
                                        // initCallback: mycarousel_initCallback
                                    });
                                </script>
                                <h2><a href="./Product.aspx">Sản Phẩm Mới Nhất</a><span>(15 sản phẩm)</span></h2>
                                <!--Start List -- >
                                <!--main-->
                                <div class="main-items">
                                    <asp:Repeater ID="spDsSpMoiNhat" runat="server">
                                        <ItemTemplate>
                                            <div class="main-item">
                                                <div class="itemhead">
                                                    <a href=".\ProductDetail.aspx?id=<%#Eval("MaSP")%>" title="<%#Eval("TenSP")%>" class="product-image"><img src="<%#Eval("HinhAnh")%>" width="200" height="158"  alt="<%#Eval("TenSP")%>" /></a>
                                                </div>
                                                <div>
                                                    <a href=".\ProductDetail.aspx?id=<%#Eval("MaSP")%>" title="<%#Eval("TenSP")%>" class="product-image"><p><%#Eval("TenSP")%></p>
                                                    <h3>﻿
                                                        <div class="price-box">
                                                            <p class="special-price">
                                                                <span class="price-label"><%# Int32.Parse(Eval("GiaKM").ToString()) == 0 ? "" : "Gi&aacute; khuyến mãi:" %> </span>
                                                                <span class="price" id="Span1"><%# Int32.Parse(Eval("GiaKM").ToString()) == 0 ? "" : Eval("GiaKM", "{0:0,00} VNĐ")%></span>
                                                            </p>
                                                            <p class="<%# Int32.Parse(Eval("GiaKM").ToString()) == 0 ? "special-price" : "old-price" %>"
                                                                <span class="price-label">Gi&aacute; gốc :</span>
                                                                <span class="price" id="Span2"><%#Eval("GiaGoc", "{0:0,00} VNĐ")%></span>
                                                            </p>
                                                        </div>
                                                        <!-- end price div -->
                                                    </h3>
                                                    </a>
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                    <div class="clear"></div>
                                    <a href="./Default.aspx" style="color: #00518C;">Xem thêm</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
</asp:Content>
